package demo2.impl;

import demo2.factory.Fridge;
import demo2.factory.TemperControl;

//普通冰箱
public class CommonFridge extends Fridge implements TemperControl {
    public CommonFridge(){};
    public CommonFridge(String brand,String type){
        super(brand,type);
    }

    @Override
    public void coldStorage(){
        System.out.println("普通冰箱冷藏温度设定为-2~8度。");
    }

    @Override
    public void freezing() {
        System.out.println("普通冰箱冷藏温度设定为-15~-25度。");
    }

    @Override
    public void AdjustColdTemper(int temperature) {
        System.out.println("通过手动调整温度转盘将"+this.getBrand()+this.getType()+"冰箱冷藏温度设定为"+temperature+"度！");
    }

    @Override
    public void AdjustFreezTemper(int temperature) {
        System.out.println("通过手动调整温度转盘将"+this.getBrand()+this.getType()+"冰箱冷冻温度设定为"+temperature+"度！");
    }
}
